﻿<phone:PhoneApplicationPage 
	x:Class="UnitDriven.ErrorDetails"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:System="clr-namespace:System;assembly=mscorlib"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:e="clr-namespace:UnitDriven.Controls"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="PortraitOrLandscape"
	Orientation="Portrait"
	mc:Ignorable="d" 
	d:DesignWidth="480" 
	d:DesignHeight="768"
	shell:SystemTray.IsVisible="True">
	
	<!--LayoutRoot contains the root grid where all other page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>

		<!--TitlePanel contains the name of the application and page title-->
		<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,26,0,12">
			<TextBlock Text="UNIT DRIVEN" Style="{StaticResource PhoneTextNormalStyle}"/>
			<TextBlock Text="error details" Margin="-3,-6,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
		</StackPanel>
		
		<!--ContentPanel - place additional content here-->
		<Grid x:Name="ContentGrid" Grid.Row="1">
			<Grid.RowDefinitions>
				<RowDefinition Height="auto" />
				<RowDefinition />
			</Grid.RowDefinitions>

			<StackPanel Grid.Row="0" Orientation="Horizontal">
				<Button Content="Back" VerticalAlignment="Center" Click="Back_Click" />
				<TextBlock VerticalAlignment="Center" Margin="10" Text="{Binding Name}" />
			</StackPanel>
			
			<ScrollViewer 
				Grid.Row="1" 
				Background="Transparent"
				HorizontalScrollBarVisibility="Visible"
				VerticalScrollBarVisibility="Visible">
				<TextBlock 
					Text="{Binding Message}"
					TextWrapping="NoWrap"
					TextAlignment="Left"
					Style="{StaticResource PhoneTextExtraLargeStyle}" />
			</ScrollViewer>
		</Grid>
	</Grid>
</phone:PhoneApplicationPage>
